package com.billing.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.billing.model.dao.MaindataBeanMapper;
import com.billing.model.entity.TMaindata;
import com.billing.service.MaindataService;
@Service
public class MaindataServiceImple implements MaindataService {
	@Resource
	private MaindataBeanMapper maindataBeanMapper;
	public int insertTMaindata(TMaindata maindata) {
		return maindataBeanMapper.insertTMaindata(maindata);
	}
	public TMaindata selectTMaindataById(String id) {
		return maindataBeanMapper.selectTMaindataById(id);
	}
	public int updateTMaindata(TMaindata maindata) {
		return maindataBeanMapper.updateTMaindata(maindata);
	}
	public List<TMaindata> getTMyApplyMaindataList(String userid, String doctype, String status, String searchStr,
			int currentPage, int pageSize) {
		return maindataBeanMapper.getTMyApplyMaindataList(userid, doctype, status, searchStr, currentPage, pageSize);
	}
	public int getTMyApplyMaindataNum(String userid, String doctype, String status, String searchStr) {
		return maindataBeanMapper.getTMyApplyMaindataNum(userid, doctype, status, searchStr);
	}
	public int getNoHandleMaindataNum(String userid, String doctype, String searchStr) {
		return maindataBeanMapper.getNoHandleMaindataNum(userid, doctype, searchStr);
	}
	public List<TMaindata> getNOHandleMaindataList(String userid, String doctype, String searchStr, int currentPage,
			int pageSize) {
		return maindataBeanMapper.getNOHandleMaindataList(userid, doctype, searchStr, currentPage, pageSize);
	}
	public int getYesHandleMaindataNum(String userid, String doctype, String searchStr) {
		return maindataBeanMapper.getYesHandleMaindataNum(userid, doctype, searchStr);
	}
	public List<TMaindata> getYesHandleMaindataList(String userid, String doctype, String searchStr, int currentPage,
			int pageSize) {
		return maindataBeanMapper.getYesHandleMaindataList(userid, doctype, searchStr, currentPage, pageSize);
	}
	public TMaindata getMaindataById(String id) {
		return maindataBeanMapper.getMaindataById(id);
	}
	public List<TMaindata> getAllMaindataList(String username, String status, Long starttime, Long endtime,int organizationid,
			int currentPage, int pageSize) {
		return maindataBeanMapper.getAllMaindataList(username, status, starttime, endtime, organizationid,currentPage, pageSize);
	}
	public int getAllMaindataListNum(String username, String status, Long starttime, Long endtime, int organizationid,
			int currentPage,int pageSize) {
		return maindataBeanMapper.getAllMaindataListNum(username, status, starttime, endtime,organizationid, currentPage, pageSize);
	}
	public List<TMaindata> getAllMaindataListStatus(String userid,String status,
			Long starttime, Long endtime,int organizationid) {
		return maindataBeanMapper.getAllMaindataListStatus(userid,status, starttime, endtime,organizationid);
	}
	@Override
	public int getMaindataListNumById(String name, String status, Long starttime, Long endtime, int organizationid,
			Integer userid) {
		return maindataBeanMapper.getMaindataListNumById(name, status, starttime, endtime, organizationid,
				 userid);
	}
	@Override
	public List<TMaindata> getMaindataListById(String name, String status, Long starttime, Long endtime,
			int organizationid, int i, int pageSize,int userid) {
		return maindataBeanMapper.getMaindataListById(name,status,starttime,endtime,organizationid,i,pageSize,userid);
	}
	@Override
	public int getMyApproveListNum(String userid,String searchStr) {
		return maindataBeanMapper.getMyApproveListNum(userid,searchStr);
	}
	@Override
	public List<TMaindata> getMyApproveList(String userid, int currentPage, int pageSize,String searchStr) {
		return maindataBeanMapper.getMyApproveList(userid,currentPage,pageSize,searchStr);
	}
	@Override
	public List<TMaindata> getRecentMaindata(String userid) {
		return maindataBeanMapper.getRecentMaindata(userid);
	}
}
